home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / tput-1_0.lha / tput-1.0 / Makefile.in < prev    next >
Makefile  |  1991-07-11  |  2KB  |  81 lines

  1. # Makefile for GNU tput
  2. # Copyright (C) 1989-1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. CC = @CC@
  23. INSTALL = @INSTALL@
  24.  
  25. # Things you might add to DEFS:
  26. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  27. # -DUSG            If you have System V/ANSI C string and
  28. #            memory functions and headers.
  29. # -DSIGTYPE=int        If your signal handlers return int, not void.
  30.  
  31. DEFS = @DEFS@
  32.  
  33. CFLAGS = -I. -g $(DEFS)
  34. LDFLAGS = -g
  35. LIBS = @LIBS@
  36.  
  37. # Where to install the executable.
  38. bindir = /usr/local/gnubin
  39.  
  40. #### End of system configuration section. ####
  41.  
  42. SRCS = tput.c conversions.c getopt.c getopt1.c termcap.c tparam.c bsearch.c
  43. OBJS = tput.o conversions.o getopt.o getopt1.o termcap.o tparam.o @LIBOBJS@
  44. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in configure README \
  45. tput.texinfo tput.h getopt.h termcap.h $(SRCS)
  46. VERSION = 1.0
  47.  
  48. all: tput
  49. .PHONY: all
  50.  
  51. tput: $(OBJS)
  52.     $(CC) -o $@ $(LDFLAGS) $(OBJS) $(LIBS)
  53.  
  54. install: all
  55.     $(INSTALL) tput $(bindir)
  56. .PHONY: install
  57.  
  58. tput.o conversions.o: tput.h
  59. getopt1.o tput.o: getopt.h
  60.  
  61. clean:
  62.     rm -f tput *.o a.out tags TAGS core
  63. .PHONY: clean
  64.  
  65. realclean: clean
  66.     rm -f Makefile
  67. .PHONY: realclean
  68.  
  69. distclean: realclean
  70.     rm -f *.tar.Z
  71. .PHONY: distclean
  72.  
  73. dist: $(DISTFILES)
  74.     echo tput-$(VERSION) > .fname
  75.     rm -rf `cat .fname`
  76.     mkdir `cat .fname`
  77.     ln $(DISTFILES) `cat .fname`
  78.     tar chZf `cat .fname`.tar.Z `cat .fname`
  79.     rm -rf `cat .fname` .fname
  80. .PHONY: dist
  81.